<?php
class Tokenfilter extends CFilter  {

    protected function preFilter($filterChain)
    {
        if($_SERVER['REQUEST_URI']==='y.php?r=restful/default/login'){
            return true;
        }
        header('Location:/index.html');
    }

}